home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / wais / ir / irverify.h < prev    next >
C/C++ Source or Header  |  1995-05-09  |  1KB  |  38 lines

  1. #ifndef irverify_H
  2. #define irverify_H
  3.  
  4. #include "irfiles.h"
  5. #include "irlex.h"
  6.  
  7. #ifndef docID
  8. #define docID         unsigned long
  9. #define postingWeight     unsigned char
  10. #endif
  11.  
  12. typedef struct serialPostingFile
  13.   FILE* stream;
  14.   long length;
  15.   long current_index_block;
  16. } serialPostingFile;
  17.  
  18. typedef struct postingsForATerm
  19.   char        word[MAX_WORD_LENGTH + 1];
  20.   unsigned long entries;
  21.   docID*    docs;
  22.   postingWeight* weights;
  23. } postingsForATerm;
  24.  
  25. serialPostingFile* initSerialPostingFile _AP((char* filename));
  26. void disposeSerialPostingFile _AP((serialPostingFile* pf));
  27. void  printPostingsForATerm _AP((postingsForATerm* pfat));
  28. postingsForATerm* getPostingsAt _AP((serialPostingFile* spf,long position));
  29. postingsForATerm* getPostingsForNextTerm _AP((serialPostingFile* spf));
  30. void disposePostingsForATerm _AP((postingsForATerm* pfat));
  31. void removePostings _AP((postingsForATerm* pfat,long start,long run));
  32. void printIndex _AP((database* db));
  33. void printIndexUsingDictionary _AP((database* db));
  34.  
  35. #endif /* ndef irverify_H */
  36.